home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8214 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news text default
99% file HTML document text default (weak)
98% file C source, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 77 6d | 69 6e 2e 61 63 2e 75 6b |Path: wm|in.ac.uk|
|00000010| 21 75 73 65 6e 65 74 0a | 46 72 6f 6d 3a 20 49 64 |!usenet.|From: Id|
|00000020| 6f 69 61 20 4c 65 72 74 | 78 75 6e 64 69 20 3c 67 |oia Lert|xundi <g|
|00000030| 73 6f 65 63 40 77 6d 69 | 6e 2e 61 63 2e 75 6b 3e |soec@wmi|n.ac.uk>|
|00000040| 0a 4e 65 77 73 67 72 6f | 75 70 73 3a 20 63 6f 6d |.Newsgro|ups: com|
|00000050| 70 2e 6c 61 6e 67 2e 63 | 0a 53 75 62 6a 65 63 74 |p.lang.c|.Subject|
|00000060| 3a 20 54 65 78 74 20 66 | 69 6c 65 20 66 6f 72 20 |: Text f|ile for |
|00000070| 6c 69 6e 6b 65 64 20 6c | 69 73 74 20 28 73 74 72 |linked l|ist (str|
|00000080| 75 63 74 75 72 65 73 29 | 0a 44 61 74 65 3a 20 32 |uctures)|.Date: 2|
|00000090| 20 4d 61 72 20 31 39 39 | 36 20 31 34 3a 33 39 3a | Mar 199|6 14:39:|
|000000a0| 31 32 20 47 4d 54 0a 4f | 72 67 61 6e 69 7a 61 74 |12 GMT.O|rganizat|
|000000b0| 69 6f 6e 3a 20 57 65 73 | 74 6d 69 6e 73 74 65 72 |ion: Wes|tminster|
|000000c0| 20 55 6e 69 76 65 72 73 | 69 74 79 0a 4d 65 73 73 | Univers|ity.Mess|
|000000d0| 61 67 65 2d 49 44 3a 20 | 3c 34 68 39 6d 69 67 24 |age-ID: |<4h9mig$|
|000000e0| 36 74 6e 40 62 61 64 67 | 65 72 2e 77 6d 69 6e 2e |6tn@badg|er.wmin.|
|000000f0| 61 63 2e 75 6b 3e 0a 52 | 65 66 65 72 65 6e 63 65 |ac.uk>.R|eference|
|00000100| 73 3a 20 3c 34 68 30 6a | 35 74 24 37 68 39 40 6e |s: <4h0j|5t$7h9@n|
|00000110| 65 77 73 68 6f 73 74 2e | 76 76 6d 2e 63 6f 6d 3e |ewshost.|vvm.com>|
|00000120| 20 3c 34 68 34 6c 74 38 | 24 37 65 75 40 62 61 64 | <4h4lt8|$7eu@bad|
|00000130| 67 65 72 2e 77 6d 69 6e | 2e 61 63 2e 75 6b 3e 0a |ger.wmin|.ac.uk>.|
|00000140| 4e 4e 54 50 2d 50 6f 73 | 74 69 6e 67 2d 48 6f 73 |NNTP-Pos|ting-Hos|
|00000150| 74 3a 20 75 78 37 2e 77 | 6d 69 6e 2e 61 63 2e 75 |t: ux7.w|min.ac.u|
|00000160| 6b 0a 4d 69 6d 65 2d 56 | 65 72 73 69 6f 6e 3a 20 |k.Mime-V|ersion: |
|00000170| 31 2e 30 0a 43 6f 6e 74 | 65 6e 74 2d 54 79 70 65 |1.0.Cont|ent-Type|
|00000180| 3a 20 74 65 78 74 2f 70 | 6c 61 69 6e 3b 20 63 68 |: text/p|lain; ch|
|00000190| 61 72 73 65 74 3d 75 73 | 2d 61 73 63 69 69 0a 43 |arset=us|-ascii.C|
|000001a0| 6f 6e 74 65 6e 74 2d 54 | 72 61 6e 73 66 65 72 2d |ontent-T|ransfer-|
|000001b0| 45 6e 63 6f 64 69 6e 67 | 3a 20 37 62 69 74 0a 58 |Encoding|: 7bit.X|
|000001c0| 2d 4d 61 69 6c 65 72 3a | 20 4d 6f 7a 69 6c 6c 61 |-Mailer:| Mozilla|
|000001d0| 20 31 2e 31 4e 20 28 58 | 31 31 3b 20 49 3b 20 53 | 1.1N (X|11; I; S|
|000001e0| 75 6e 4f 53 20 34 2e 31 | 2e 33 5f 55 31 20 73 75 |unOS 4.1|.3_U1 su|
|000001f0| 6e 34 63 29 0a 54 6f 3a | 20 67 73 6f 65 63 40 77 |n4c).To:| gsoec@w|
|00000200| 6d 69 6e 2e 61 63 2e 75 | 6b 0a 58 2d 55 52 4c 3a |min.ac.u|k.X-URL:|
|00000210| 20 6e 65 77 73 3a 34 68 | 34 6c 74 38 24 37 65 75 | news:4h|4lt8$7eu|
|00000220| 40 62 61 64 67 65 72 2e | 77 6d 69 6e 2e 61 63 2e |@badger.|wmin.ac.|
|00000230| 75 6b 0a 0a 49 20 68 61 | 76 65 20 6e 65 73 74 65 |uk..I ha|ve neste|
|00000240| 64 20 73 74 72 75 63 74 | 75 72 65 73 20 77 69 74 |d struct|ures wit|
|00000250| 68 20 70 6f 69 6e 74 65 | 72 73 20 62 65 74 77 65 |h pointe|rs betwe|
|00000260| 65 6e 20 74 68 65 6d 20 | 73 75 63 68 20 61 73 20 |en them |such as |
|00000270| 74 68 65 20 6f 6e 65 20 | 62 65 6c 6f 77 2e 0a 0a |the one |below...|
|00000280| 4d 79 20 71 75 65 73 74 | 69 6f 6e 20 63 61 6e 20 |My quest|ion can |
|00000290| 73 6f 6d 65 6f 6e 65 20 | 72 65 63 6f 6d 6d 65 6e |someone |recommen|
|000002a0| 64 20 6d 65 20 74 68 65 | 20 62 65 73 74 20 77 61 |d me the| best wa|
|000002b0| 79 20 74 6f 20 6f 70 65 | 6e 20 61 20 74 65 78 74 |y to ope|n a text|
|000002c0| 28 64 61 74 61 29 20 66 | 69 6c 65 20 74 6f 0a 66 |(data) f|ile to.f|
|000002d0| 65 65 64 20 74 6f 20 74 | 68 65 20 66 6f 6c 6c 6f |eed to t|he follo|
|000002e0| 77 69 6e 67 20 73 74 72 | 75 63 74 75 72 65 73 2e |wing str|uctures.|
|000002f0| 20 41 6c 6c 20 63 6f 75 | 72 73 65 73 20 66 69 72 | All cou|rses fir|
|00000300| 73 74 2c 20 66 72 61 6d | 65 73 20 61 6e 64 20 68 |st, fram|es and h|
|00000310| 6f 77 20 74 68 65 0a 70 | 72 65 72 65 71 75 69 73 |ow the.p|rerequis|
|00000320| 69 74 65 73 20 28 70 72 | 65 72 65 71 29 20 62 69 |ites (pr|ereq) bi|
|00000330| 74 3f 0a 0a 53 68 61 6c | 6c 20 49 20 75 73 65 20 |t?..Shal|l I use |
|00000340| 66 67 65 74 73 20 74 6f | 20 72 65 61 64 20 61 20 |fgets to| read a |
|00000350| 6c 69 6e 65 20 61 74 20 | 74 68 65 20 74 69 6d 65 |line at |the time|
|00000360| 20 6f 72 20 73 68 61 6c | 6c 20 49 20 72 65 61 64 | or shal|l I read|
|00000370| 20 63 68 61 72 61 63 74 | 65 72 20 62 79 0a 63 68 | charact|er by.ch|
|00000380| 61 72 61 63 74 65 72 20 | 66 67 65 74 63 3f 0a 0a |aracter |fgetc?..|
|00000390| 49 20 77 6f 75 6c 64 20 | 61 70 70 72 65 63 69 61 |I would |apprecia|
|000003a0| 74 65 20 61 6e 79 20 68 | 65 6c 70 2e 20 54 68 61 |te any h|elp. Tha|
|000003b0| 6e 6b 20 79 6f 75 20 61 | 6c 6c 2e 0a 0a 74 79 70 |nk you a|ll...typ|
|000003c0| 65 64 65 66 20 73 74 72 | 75 63 74 20 6d 6f 64 75 |edef str|uct modu|
|000003d0| 6c 65 0a 7b 0a 20 20 63 | 68 61 72 20 63 6f 64 65 |le.{. c|har code|
|000003e0| 5b 38 5d 3b 0a 63 68 61 | 72 20 6e 61 6d 65 5b 32 |[8];.cha|r name[2|
|000003f0| 35 5d 3b 0a 63 68 61 72 | 20 72 65 73 75 6c 74 5b |5];.char| result[|
|00000400| 31 30 5d 3b 0a 73 74 72 | 75 63 74 20 6d 6f 64 75 |10];.str|uct modu|
|00000410| 6c 65 20 2a 6e 65 78 74 | 6d 3b 0a 73 74 72 75 63 |le *next|m;.struc|
|00000420| 74 20 6d 6f 64 75 6c 65 | 20 2a 70 72 65 72 65 71 |t module| *prereq|
|00000430| 3b 0a 73 74 72 75 63 74 | 20 6d 6f 64 75 6c 65 20 |;.struct| module |
|00000440| 2a 63 6f 72 65 71 3b 0a | 7d 4d 4f 44 55 4c 45 3b |*coreq;.|}MODULE;|
|00000450| 0a 0a 74 79 70 65 64 65 | 66 20 73 74 72 75 63 74 |..typede|f struct|
|00000460| 20 66 72 61 6d 65 0a 7b | 0a 20 20 63 68 61 72 20 | frame.{|. char |
|00000470| 73 65 6d 65 73 74 65 72 | 5b 34 5d 3b 0a 20 20 63 |semester|[4];. c|
|00000480| 68 61 72 20 6c 65 76 65 | 6c 5b 33 5d 3b 0a 20 20 |har leve|l[3];. |
|00000490| 69 6e 74 20 66 72 65 65 | 65 6c 65 63 74 69 76 65 |int free|elective|
|000004a0| 3b 0a 20 20 73 74 72 75 | 63 74 20 6d 6f 64 75 6c |;. stru|ct modul|
|000004b0| 65 20 2a 63 6f 72 6d 6f | 64 73 3b 0a 20 20 73 74 |e *cormo|ds;. st|
|000004c0| 72 75 63 74 20 6d 6f 64 | 75 6c 65 20 2a 6f 70 74 |ruct mod|ule *opt|
|000004d0| 6d 6f 64 73 3b 0a 20 20 | 73 74 72 75 63 74 20 66 |mods;. |struct f|
|000004e0| 72 61 6d 65 20 2a 6e 65 | 78 74 66 3b 0a 7d 46 52 |rame *ne|xtf;.}FR|
|000004f0| 41 4d 45 3b 0a 0a 3c 41 | 20 48 52 45 46 3d 22 6d |AME;..<A| HREF="m|
|00000500| 61 69 6c 74 6f 3a 67 73 | 6f 65 63 40 77 6d 69 6e |ailto:gs|oec@wmin|
|00000510| 2e 61 63 2e 75 6b 22 3e | 67 73 6f 65 63 40 77 6d |.ac.uk">|gsoec@wm|
|00000520| 69 6e 2e 61 63 2e 75 6b | 3c 2f 41 3e 0a 3c 41 20 |in.ac.uk|</A>.<A |
|00000530| 48 52 45 46 3d 22 68 74 | 74 70 3a 2f 2f 77 77 77 |HREF="ht|tp://www|
|00000540| 2e 77 6d 69 6e 2e 61 63 | 2e 75 6b 2f 7e 67 73 6f |.wmin.ac|.uk/~gso|
|00000550| 65 63 2f 22 3e 68 6f 6d | 65 20 70 61 67 65 3c 2f |ec/">hom|e page</|
|00000560| 41 3e 0a 0a 3a 2d 29 20 | 54 68 61 6e 6b 73 20 69 |A>..:-) |Thanks i|
|00000570| 6e 20 61 64 76 61 6e 63 | 65 0a 0a |n advanc|e.. |
+--------+-------------------------+-------------------------+--------+--------+